package cn.ywang.spring.framework.web.servlet;

import java.lang.reflect.Method;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.regex.Pattern;

/**
 * @author BeatificWang
 * @date 2019/5/3 15:41
 */
public class HandlerMapping {

	/**
	 * 映射实例
	 */
	private Object controller;

	/**
	 * 映射方法
	 */
	private Method method;

	/**
	 * 映射规则
	 */
	private Pattern pattern;

	private final Map<String, Object> handlerMap = new LinkedHashMap<>();

	public Object getController() {
		return this.controller;
	}

	public void setController(Object controller) {
		this.controller = controller;
	}

	public Method getMethod() {
		return this.method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Pattern getPattern() {
		return this.pattern;
	}

	public void setPattern(Pattern pattern) {
		this.pattern = pattern;
	}

	public Map<String, Object> getHandlerMap() {
		return this.handlerMap;
	}
}
